CPO-Models for Second Order Lambda Calculus with Recursive Types and Subtyping
نویسندگان
چکیده
In this paper we present constructions of cpo models for second order lambda calculi with recursive types and/or subtyping. The model constructions are based on a model construction by ten Eikelder and Hemerik for second order lambda calculus with recursive types ([tEH89a]). The models will be compatible with conventional denotational semantics. For each of the systems we consider, the general structure of an environment model for that system is described first. For the systems with subtyping we prove coherence, i.e. that the meaning of a term is independent of which particular type derivation we consider. The actual model constructions are then based on a standard fixed-point result for w-categories. The combination and interaction of recursive types and sUbtyping does not pose any problems. ·supported by the Dutch organization for scientific research (NWO).
منابع مشابه
The Recursive Union of Some Gradual Types
We study union types and recursive types in the setting of a gradually typed lambda calculus. Our goal is to obtain a foundational account for languages that enable recursively defined data structures to be passed between static and dynamically typed regions of a program. We discuss how traditional sum types are not appropriate for this purpose and instead study a form of “true” union in the tr...
متن کاملCoherent Coercion Abstraction with a step-indexed strong-reduction semantics
The usual notion of type coercions that witness subtyping relations between types is generalized to a more expressive notion of typing coercions that witness subsumption relations between typings, e.g. pairs composed of a typing environment and a type. This is more expressive and allows for a clearer separation of language constructs with and without computational content. This is illustrated o...
متن کاملFsub with Recursive Types: \types-as-propositions" Interpretation in M. Rabin's S2s
Subtyping judgments of the polymorphic second-order typed-calculus F extended by recursive types and diierent known inference rules for these types could be interpreted in S2S, M.Rabin's monadic second-order theory of two successor functions. On the one hand, this provides a comprehensible model of the parametric and inheritance polymorphisms over recursive types, on the other, proves that the ...
متن کاملPolymorphic lambda calculus and subtyping
We present a denotational model for F<, the extension of second-order lambda calculus with subtyping defined in [Cardelli Wegner 1985]. Types are interpreted as arbitrary cpos and elements of types as natural transformations. We prove the soundness of our model with respect to the equational theory of F< [Cardelli et al. 1991] and show coherence. Our model is of independent interest, because it...
متن کاملDecidable Higher Order Subtyping
This paper establishes the decidability of typechecking in Fω ∧ , a typed lambda calculus combining higher-order polymorphism, subtyping, and intersection types. It contains the first proof of decidability of subtyping for a higher-order system.
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- ITA
دوره 27 شماره
صفحات -
تاریخ انتشار 1993